We expect to be handling a string delimited by \0 characters, as
returned by llistxattr(). So stick to that behavior here.
https://bugzilla.gnome.org/show_bug.cgi?id=705893
}
xattrs = g_slist_sort (xattrs, (GCompareFunc) strcmp);
- for (iter = xattrs; iter; iter = iter->next)
+ for (iter = xattrs; iter; iter = iter->next) {
g_string_append (result, iter->data);
+ g_string_append_c (result, '\0');
+ }
g_slist_free (xattrs);
return g_string_free (result, FALSE);